主题
内存区分欧拉加密包类型 - OlaDetectEncryptedPackageTypeMemory
函数简介
仅读取包头,不解密,快速区分 OCR 与 YOLO 欧拉加密包。
接口名称
OlaDetectEncryptedPackageTypeMemoryDLL 调用
int OlaDetectEncryptedPackageTypeMemory(long memoryAddr, long size);参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| memoryAddr | 长整数型 | 缓冲区地址。 |
| size | 长整数型 | 缓冲区长度,至少 8 字节。 |
示例
SDK 调用
cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
int ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0);csharp
using OLAPlug;
var ola = new OLAPlugServer();
int ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0);python
from OLAPlugServer import OLAPlugServer
ola = OLAPlugServer()
ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0)java
import com.olaplug.OLAPlugServer;
OLAPlugServer ola = new OLAPlugServer();
int ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0);go
import "github.com/ola/olaplug/olaplug"
ola, _ := olaplug.NewOLAPlugServer("OLAPlug_x64.dll")
defer ola.ReleaseObj()
ret := ola.OlaDetectEncryptedPackageTypeMemory(0, 0)rust
use olaplug::OLAPlugServer;
let ola = OLAPlugServer::new("OLAPlug_x64.dll").unwrap();
let ret = ola.ola_detect_encrypted_package_type_memory(0, 0);cpp
var ola = com("OlaPlug.OlaSoft")
var ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0)vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0)text
.局部变量 ola, OLAPlug
ola.创建 ()
ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0)aardio
import OLAPlugServer;
var ola = OLAPlugServer();
var ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0);text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
整数 ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0)cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
int32_t ret = ola.OlaDetectEncryptedPackageTypeMemory(0, 0);原生 DLL 调用
cpp
OlaDetectEncryptedPackageTypeMemory(instance, 0, 0);csharp
using System.Runtime.InteropServices;
using System.Text;
[DllImport("OLAPlug_x64.dll", CallingConvention = CallingConvention.StdCall)]
static extern int OlaDetectEncryptedPackageTypeMemory(long memoryAddr, long size);
OlaDetectEncryptedPackageTypeMemory(instance, 0, 0);python
from ctypes import CDLL, c_int, c_int64, create_string_buffer
ola = CDLL("OLAPlug_x64.dll")
ola.CreateCOLAPlugInterFace.restype = c_int64
ola.OlaDetectEncryptedPackageTypeMemory(instance, 0, 0)返回值
| 返回值 | 说明 |
|---|---|
0 | 未知或非欧拉格式。 |
1 | OCR 加密包。 |
2 | YOLO 加密包。 |
注意事项
| 项目 | 说明 |
|---|---|
无需 ola 实例 | 无需 ola 实例,可在加载前预判包类型。 |
